/*
 * SiFiSy - A File System Simulator
 * Copyright (C) 2010  SevenSoft
 *
 * This file is part of SiFiSy.
 *
 * SiFiSy is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * SiFiSy is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with SiFiSy.  If not, see <http://www.gnu.org/licenses/>.
 *
 *SevenSoft - Progetto "SiFiSy"
 *NOME FILE: Section.java
 *AUTORE: Alessandro Vedovato
 *DATA CREAZIONE: 18/02/2010
 *REGISTRO DELLE MODIFICHE:
 *22/02/2010 Aggiunta del JavaDoc relativo alla sezione
 *20/02/2010 Aggiunti tutti i get and set
 *18/02/2010 Prima implementazione della classe inizializazione dei campi dati
 */

package sifisy.core;

/**
 * Section is the class that represents a section of a file in the disk
 * @author Alessandro Vedovato
 * @version %I%, %G%
 * @createData 18/02/2010
 */
public class Section {
    private String id = "";
    private long first;
    private long lenght;

    /**
     * Sets the identification of a Section
     * @param parId
     */
    void setId(String parId){
        id=parId;
    }

    /**
     * Returns the identification of a Section
     * @return int
     */
    String getId(){
        return id;
    }

    /**
     * Sets the starting position of a section
     * @param parFirst
     */
    void setFirst(long parFirst){
        first=parFirst;
    }

    /**
     * Returns the starting position of a section
     * @return int
     */
    long getFirst(){
        return first;
    }
    /**
     * Sets the length of the section
     * @param parLenght
     */
    void setLenght(long parLenght){
        lenght=parLenght;
    }

    /**
     * Returns the length of the section
     * @return int
     */
    long getLenght(){
        return lenght;
    }
}